/*
 *  io_driver.h
 *  Fib
 *
 *  Created by John Bassham on 11/13/08.
 *  Copyright 2008 __MyCompanyName__. All rights reserved.
 *
 */

#ifndef IO_DRIVER_H_
#define IO_DRIVER_H_

#include "bool.h"

struct output_driver {
	void (*str_func)(const char *);
	const char *type_str;
};

struct io_driver {
	bool has_input;
	bool has_output;
	bool is_ready;
};

void init_io_driver(struct io_driver *);

void register_input_driver(struct io_driver *, const char *);

void register_output_driver(struct io_driver *, const char *);

#endif
